package cn.monkey.family.data.shop.item;

import cn.monkey.family.data.Entity;
import cn.monkey.family.data.shop.item.type.ItemType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@EqualsAndHashCode(callSuper = true)
@Document
public class Item extends Entity {
    private String name;
    /**
     * {@link ItemType#getKey()}
     */
    private String type;
    private String[] tags;
    private String[] imgUrls;
    private Double price;
    private String desc;
    // 剩余库存(kg)
    private Double inventory;
}
